Week 3: Java Remote Method Invocation

 

This week's online activity is about Java RMI (Remote Method Invocation). 

 

    Read the three videos in this RMI tutorial on Youtube:

http://www.youtube.com/watch?v=ILeAeFZOkMI&list=PLDD7C04F1A038FDD4  22:05s

Separately, those videos are

http://www.youtube.com/watch?v=ILeAeFZOkMI RMI Part I, 6:37

http://www.youtube.com/watch?v=OjXTkgW0wDQ  RMI Part II, 7:41

http://www.youtube.com/watch?v=vkw275ptI3E RMI Part III, 7:47

 


    Read over the first page of the Java Tutorials RMI Trail (RMI Overview) here:

http://docs.oracle.com/javase/tutorial/rmi/overview.html

 

    Check your understanding of these new concepts with the online Blackboard Quiz for this activity

Question 1
A Java RMI remote object may use the UnicastRemoteObject.exportObject() method to be linked into RMI
	True (correct)
	False

Question 2
To implement an RMI server application, the following method call is necessary to make a certain service available on a certain port:
	All three of these answers
	UnicastRemoteObject.exportObject()
	None of these three answers
	Naming.rebind() (correct)
	LocateRegistry.createRegistry()

Question 3
Which of the following statements is true about a remote object in a Java RMI implementation
	All three of these answers
	None of these three answers
	Its methods may only take primitive data types as arguments
	It must extend the java.rmi.server.UnicastRemoteObject class
	It must declare a java.rmi.RemoteException in its constructor (correct)

Question 4
To implement an RMI client application, the following method call can be used to bind to an RMI service:
	Naming.rebind()
	All three of these answers
	LocateRegistry.createRegistry()
	UnicastRemoteObject.exportObject()
	None of these three answers (correct)